<#include "/included/view_meta_global.ftl">
<body>
<div id="maxw">
<!-- header part -->
<#include "/included/header_global.ftl">

<div id="leftpart">
<div class="lp_post"><a href="post">post a new item</a></div>
<#list featuredArticles?if_exists as article>
<h1><a href="/codebush/subject/thread?aid=${article.id}">${article.title?if_exists}</a></h1>
<div class="content">${article.content}</div>
</#list>
</div>
<!-- 右半边 right side part -->
<div id="rightpart">
<#if Session.userId?exists>
	<div><a href="/codebush/home/profile?uid=${Session.userId}"><img src="/codebush/uLogoPicture.asm" title="${Session.userName}'s Profile" class=logo /></a></div>
	<h2><a href="/codebush/home/profile?uid=${Session.userId}">&nbsp;&nbsp;My Profile</a></h2>
	<h2><a href="/codebush/support/logout?uid=${Session.userId}">Logout</a></h2>
	<div><h2>最新的评论</h2>
		 <#list latestComments?if_exists as comment>
		 	<a href="/codebush/subject/thread?aid=${comment.subject_id}">${comment.content}</a><br><br>
		 </#list></div>
<#else>
	<div><h2><a href="/codebush/go/?url=/support/signin">sign in</a>&nbsp;&nbsp;&nbsp;
			 <a href="/codebush/go/?url=/support/signup&thanks=true">sign up</a></h2></div>
</#if>
<#include "/included/rightside_global.ftl"></div>

<!-- 底部 footer  -->
<#include "/included/footer_global.ftl">
</div><!-- end  maxw  -->
</body>
</html>